<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% block title %}
        <title>title</title>
    {% endblock title %}
    <script src="/static/js/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/static/plugins/sweetalert/sweetalert.css">
    <script src="/static/plugins/sweetalert/sweetalert-dev.js"></script>
{#    <script src="/static/js/jquery.md5.js"></script>#}
</head>
<body>

<div class="container">
    <nav class="navbar">
        <div class="container-fluid">
            <div class="navbar-header" >
{#                          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">#}
{#                            <span class="sr-only">Toggle navigation</span>#}
{#                            <span class="icon-bar"></span>#}
{#                            <span class="icon-bar"></span>#}
{#                            <span class="icon-bar"></span>#}
{#                          </button>#}
                <a class="navbar-brand" href="/index/">日志管理系统</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">用户: xiao</a></li>
{#                    <li><a href="#">登录时间: {{ request.session.last_time|slice:":19" }}</a></li>#}
{#                    <li>#}
{#                        <div class="dropdown" style="margin-top: 10px">#}
{#                          <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">#}
{#                            设置#}
{#                            <span class="caret"></span>#}
{#                          </button>#}
{#                          <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">#}
{#                            <li>#}
{#                                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>#}
{#                                <a href="/user/edit_info/">修改信息</a></li>#}
{#                            <li><a href="/user/edit_pwd/">修改密码</a></li>#}
{#                          </ul>#}
{#                        </div>#}
{#                    </li>#}
                    <li><a href="/logout/">注销</a></li>
                </ul>

            </div>
        </div>
    </nav>

    <div class="row">
        <div class="col-md-3">
            <div class="panel panel-default">
                <div class="panel-heading">主机管理</div>
                <div class="panel-body">
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="/index/">主机列表</a>
                        </li>
                    </ul>
                </div>
            </div>
{#            {% if request.session.role == 1 %}#}
{#                <div class="panel panel-default">#}
{#                    <div class="panel-heading">用户管理</div>#}
{#                    <div class="panel-body">#}
{#                        <ul class="list-group">#}
{#                            <li class="list-group-item">#}
{#                                <a href="/user/list/">用户列表</a>#}
{#                            </li>#}
{#                        </ul>#}
{#                    </div>#}
{#                </div>#}
{#            {% endif %}#}

        </div>
        <div class="col-md-9">
            {% csrf_token %}
            {% block content %}

            {% endblock %}
        </div>
    </div>
</div>

</body>
</html>